package com.study.gank.router

import android.content.Context
import android.content.Intent
import android.net.Uri

object GankRouter {
    fun router(context: Context, uri: String) {
        println(uri)
        val intent = Intent()
        intent.action = Intent.ACTION_VIEW
        intent.data = Uri.parse(uri)
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        context.startActivity(intent)
    }
}